import mitt from 'mitt';

// 创建事件总线实例
const eventBus = mitt();

// 定义一些常量，避免字符串拼写错误
export const EventType = {
  PLAY_SONG: 'play-song',
  NEXT_SONG: 'next-song',
  PREVIOUS_SONG: 'previous-song',
};

export default eventBus;
